package ft.app.gtig.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import com.haulmont.cuba.core.entity.StandardEntity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import com.haulmont.cuba.core.entity.BaseUuidEntity;
import com.haulmont.cuba.core.entity.Updatable;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Table(name = "GTIG_EVENT_AGENDA")
@Entity(name = "gtig$EventAgenda")
public class EventAgenda extends BaseUuidEntity implements Updatable {
    private static final long serialVersionUID = 397429550594596185L;

    @Column(name = "TOPIC_TIME", nullable = false)
    protected String topicTime;

    @Column(name = "TOPIC_TEXT", nullable = false, length = 100)
    protected String topicText;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "TIMELINE_EVENT_ID")
    protected TimelineEvent timelineEvent;
    @Column(name = "SORT", nullable = false)
    protected Integer sort;

    @Column(name = "UPDATE_TS")
    protected Date updateTs;

    @Column(name = "UPDATED_BY", length = 50)
    protected String updatedBy;

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }


    public String getTopicTime() {
        return topicTime;
    }

    public void setTopicTime(String topicTime) {
        this.topicTime = topicTime;
    }



    public void setTimelineEvent(TimelineEvent timelineEvent) {
        this.timelineEvent = timelineEvent;
    }

    public TimelineEvent getTimelineEvent() {
        return timelineEvent;
    }


    @Override
    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String getUpdatedBy() {
        return updatedBy;
    }

    @Override
    public void setUpdateTs(Date updateTs) {
        this.updateTs = updateTs;
    }

    @Override
    public Date getUpdateTs() {
        return updateTs;
    }




    public void setTopicText(String topicText) {
        this.topicText = topicText;
    }

    public String getTopicText() {
        return topicText;
    }


}